namespace GKScoreQueryHelper
{
    internal static class Program
    {
        /// <summary>
        ///  The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {

            DateTime ExpiredTime = new DateTime(2024, 12, 31);
            if (System.DateTime.Now > ExpiredTime)
            {
                MessageBox.Show("您使用的是测试版软件且已过期，如需正式版，请与作者联系。", "错误", MessageBoxButtons.YesNo);
                Application.Exit();
                return;
            }
            if (!Utils.Authorized("https://gitee.com/badger/cherry/blob/master/GKScoreQueryHelper"))
            {
                MessageBox.Show("您使用的是测试版软件且已过期，如需正式版，请与作者联系。", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Application.Exit();
                return;
            }



            //Application.SetHighDpiMode(HighDpiMode.SystemAware);
            //Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);


            // To customize application configuration such as set high DPI settings or default font,
            // see https://aka.ms/applicationconfiguration.
            ApplicationConfiguration.Initialize();
            Application.Run(new FormMain());
            //Application.Run(new FormTest());
            //Application.Run(new FormControl());
        }
    }
}